package com.ruoyi.cems.domain;

import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 应急指挥部应急联络;对象 bms_evc_contact
 * 
 * @author ruoyi
 * @date 2024-06-24
 */
@Data
@ApiModel(description = "应急指挥部应急联络")
public class BmsEVCContact extends BmsBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 应急控制表ID */
    @Excel(name = "应急控制表ID")
    @ApiModelProperty("应急控制表ID")
    private String parentId;

    /** 角色 */
    @Excel(name = "岗位")
    @ApiModelProperty("岗位")
    private String role;

    /** 工号 */
    @Excel(name = "工号")
    @ApiModelProperty("工号")
    private String jobNumber;

    /** 姓名 */
    @Excel(name = "姓名")
    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("人员ID")
    private String userId;

    /** 联系方式 */
    @Excel(name = "联系方式")
    @ApiModelProperty("联系方式")
    private String tel;

    /** 职务 */
    private String position;

    /** 职务 */
    @Excel(name = "职务")
    @ApiModelProperty("职务")
    private String positionName;

    /** 状态 */
    @Excel(name = "状态")
    @ApiModelProperty("状态")
    private String status;

    @Excel(name = "联络表类型")
    @ApiModelProperty("联络表类型，当架次事故应急指挥部应急联络表:command,试飞中心应急领导小组联络表:leadership,中国商飞安全与应急管理部联络表:safety,试飞中心应急办公室联络表:office,主联络信息表:main")
    private String type;

    @ApiModelProperty("备注")
    private String remark;

    private boolean flag;

    @ApiModelProperty("角色")
    private String roleName;

    @ApiModelProperty("角色编号")
    private String positionNumber;

    @ApiModelProperty("查看时间")
    private Date viewTime;

    private String phonenumber;

    private Integer num;

    //是否签到
    private Integer duty;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("ID", getID())
            .append("REVISION", getREVISION())
            .append("parentId", getParentId())
            .append("role", getRole())
            .append("name", getName())
            .append("tel", getTel())
            .append("position", getPosition())
            .append("status", getStatus())
            .append("type",getType())
            .append("remark",getRemark())
            .append("roleName",getRoleName())
            .append("viewTime",getViewTime())
            .append("num",getNum())
            .toString();
    }
}
